# include <bits/stdc++.h>
# define MAXN 101
using namespace std;
int a[MAXN];
int b[MAXN];
int c[MAXN], cnt;
inline int gn() { 
    int k = 0, f = 1;
    char c = getchar();
    for(; !isdigit(c); c = getchar()) if(f == '-') f = -1;
    for(; isdigit(c); c = getchar()) k = k * 10 + c - '0';
    return k * f;
}

inline bool cmp(int a, int b) { 
    return a > b;
}

int main() { 
    int n = gn();
    int m = gn();
    for(int i = 1; i <= n; i++) {
        a[i] = gn();
        if(!a[i]) c[++cnt] = i;
    }
    for(int i = 1; i <= m; i++) b[i] = gn();
    sort(b + 1, b + m + 1, cmp);
    for(int i = 1; i <= cnt; i++) {
        a[c[i]] = b[i];
    }
    int tmp = 0;
    for(int i = 1; i <= n; i++) { 
        if(tmp <= a[i]) tmp = a[i] + 1;
        else { 
            printf("Yes\n");
            return 0;
        }
    }
    printf("No\n");
    return 0;
} 
